$(document).ready(function(){
	$('table.with-check input').iCheck({
		checkboxClass: 'icheckbox_minimal-green',
		radioClass: 'iradio_minimal-green',
		increaseArea: '20%' 
	});

	/*$("#shoppingModal").dialog({
		autoOpen: false,
		modal: true,
		buttons: {
			"确认": function () {
				$(this).dialog("close");
			}
		}
	});
	$("#shoppingCart").click(function(){
		var flag= false;
		var checkedHTML=[];
		var checkSTR="";
		$("table .shopCheck").each(function(){
			if($(this).prop("checked")){
				flag=true;
				checkedHTML.push('<tr><td>'+$(this).parents("tr").find(".Product_Code").html()+'</td>');
				checkedHTML.push('<td class="zzk">'+$(this).parents("tr").find(".Product_Name").html()+'</td>');
				checkedHTML.push('<td><button class="btn btn-danger btn-mini" type="button">删除</button></td></tr>');
			};
		});
		checkSTR+=checkedHTML.join("");
		if(flag){
			var TableHTML='<h4 class="text-success" val="'+$("#Product_TypeID").val()+'">'+$("#Product_TypeID option:checked").html()+'</h4>'+
				'<table class="table table-bordered table-condensed table-hover">'+
				'<thead><tr><th>产品编码</th><th>产品名称</th><th></th></tr></thead>'+
				'<tbody>'+checkSTR+'</tbody></table>';
			$("#shoppingModal").html(TableHTML);
			$("#shoppingModal").dialog("open");
		}else{
			toastr.info("请先选择产品后，再加入购物车！！", '<h4>友情提示：</h4>');
		}
		return false;
	})	*/

});
